package gui;

import java.awt.Font;
import java.awt.Toolkit;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import javax.swing.JPanel;
import java.awt.BorderLayout;

public class GuiTemplate {

	public static void main(String[] args) {
		  //UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		//JPanel p1=new JPanel();
		//new GuiTemplate(p1);
	}
	
	/**
	 * @wbp.parser.entryPoint
	 */
	public GuiTemplate(JPanel Pcenter){
		final JFrame guiFrame = new JFrame();
        guiFrame.setIconImage(Toolkit.getDefaultToolkit().getImage(RunCrst.class.getResource("/images/test16.gif")));
        guiFrame.setResizable(false);
        
        // frame properties
        guiFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        guiFrame.setTitle("CRST");
        guiFrame.setSize(649,600);
        
        // center the JFrame in the middle of the screen
        guiFrame.setLocationRelativeTo(null);
        
        
        // title
        JPanel panelN = new JPanel();
        JLabel lblClassificationOfRegression = new JLabel("");
        lblClassificationOfRegression.setIcon(new ImageIcon(RunCrst.class.getResource("/images/CRST_bg.png")));
        lblClassificationOfRegression.setHorizontalAlignment(SwingConstants.CENTER);
        lblClassificationOfRegression.setFont(new Font("Tahoma", Font.BOLD, 22));
        panelN.add(lblClassificationOfRegression);
        
        
       //*****************
        guiFrame.getContentPane().add(panelN, BorderLayout.NORTH);
        guiFrame.getContentPane().add(Pcenter, BorderLayout.CENTER);
        
        guiFrame.pack();
        guiFrame.setVisible(true);	//make sure the JFrame is visible
       //*****************
        
	}
	
}
